THE 20-POINT SECURITY CHECK

How to use it: open Claude Code in your app's folder and paste "paste into claude code.txt". Claude goes through all 20 points, says PASS, FAIL or CAN'T TELL for each one with the file and line, and changes nothing until you say so.

What each point means and why it matters:

1. A login check that lives in the browser. If only the page hides the button, anyone can skip the page and call your server directly.
2. An open .git folder. That folder holds your whole code history, including any key you ever saved by mistake, and some setups put it online.
3. API keys in the page code. Anything the browser loads, a visitor can read, so a secret key there can be used on your bill.
4. A database with no access rules. If the browser talks to your database, the rules are the only thing stopping a visitor from reading or wiping every row.
5. A price the browser sends. If your server takes the price from the browser, someone can change it and pay less.
6. Unlimited login guesses. With no limit, a script can try thousands of passwords on one account.
7. A reset link sent to their server. If the reset email builds its link from the incoming request, a faked request can point the link at someone else's site.
8. Change one number, see someone else's order. If the server never checks who owns a record, changing the ID in the address shows another person's data.
9. Uploads that take any file. A file that runs as code or opens as a web page on your site can attack your other users.
10. A server that fetches any link. If your server fetches whatever web address a user gives it, it can be pointed at private systems behind your server.
11. A search box wired into the database. If typed text goes straight into a database query, it can change what the query does.
12. Comments that run as code. If user text is put on the page without escaping, one bad comment can run code in every visitor's browser.
13. A chatbot that leaks its instructions. Treat a chatbot's instructions as public, because users can coax them out. Keep keys and private data out of them.
14. A discount code that works twice. If the code is checked first and marked used later, two quick requests can both get through.
15. Source maps that show your code. These files turn your shipped code back into readable source for anyone who asks.
16. An admin page with no lock. If the server does not check for an admin, anyone who finds the address gets in.
17. Errors that show your file paths. Detailed error messages tell strangers how your app is built and where to look.
18. A forgotten subdomain. An old subdomain still pointing at a service you closed can sometimes be claimed by someone else.
19. Texts with no limit. If anyone can make your app send texts or emails over and over, you pay for every one.
20. Old packages with known holes. When a package has a security problem, the details are made public, so an old version is an easy target.
